unit uniRelFaturaConsolidado;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, QRCtrls, jpeg, QuickRpt, ExtCtrls, DB, ADODB;

type
  TfrmRelFaturaConsolidado = class(TForm)
    qrpRel: TQuickRep;
    QRBand1: TQRBand;
    QRLabel1: TQRLabel;
    QRLabel2: TQRLabel;
    QRLabel10: TQRLabel;
    qrlAno: TQRLabel;
    qrImgCliente: TQRImage;
    QRLabel7: TQRLabel;
    QRLabel18: TQRLabel;
    QRShape3: TQRShape;
    QRLabel9: TQRLabel;
    QRShape2: TQRShape;
    QRShape1: TQRShape;
    QRShape4: TQRShape;
    QRShape5: TQRShape;
    QRShape6: TQRShape;
    QRShape7: TQRShape;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRShape10: TQRShape;
    QRShape11: TQRShape;
    QRShape12: TQRShape;
    QRLabel4: TQRLabel;
    QRLabel13: TQRLabel;
    QRLabel14: TQRLabel;
    QRLabel15: TQRLabel;
    QRLabel16: TQRLabel;
    QRLabel20: TQRLabel;
    QRLabel21: TQRLabel;
    QRLabel22: TQRLabel;
    QRLabel23: TQRLabel;
    QRLabel24: TQRLabel;
    QRShape13: TQRShape;
    qrlTotJan: TQRLabel;
    qrlTotFev: TQRLabel;
    qrlTotMar: TQRLabel;
    qrlTotAbr: TQRLabel;
    qrlTotMai: TQRLabel;
    qrlTotJun: TQRLabel;
    qrlTotJul: TQRLabel;
    qrlTotAgo: TQRLabel;
    qrlTotSet: TQRLabel;
    qrlTotOut: TQRLabel;
    qrlTotNov: TQRLabel;
    qrlTotDez: TQRLabel;
    QRBand2: TQRBand;
    QRLabel3: TQRLabel;
    QRSysData2: TQRSysData;
    QRSysData1: TQRSysData;
    qrlUsuario: TQRDBText;
    QR_Rel: TADOQuery;
    procedure QRBand1BeforePrint(Sender: TQRCustomBand;
      var PrintBand: Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmRelFaturaConsolidado: TfrmRelFaturaConsolidado;

implementation

uses UniFuncoes;

{$R *.dfm}

procedure TfrmRelFaturaConsolidado.QRBand1BeforePrint(
  Sender: TQRCustomBand; var PrintBand: Boolean);
begin
  qrlTotJan.Caption := formatarValor(QR_Rel.FieldByName('''JAN''').AsString);
  qrlTotFev.Caption := formatarValor(QR_Rel.FieldByName('''FEV''').AsString);
  qrlTotMar.Caption := formatarValor(QR_Rel.FieldByName('''MAR''').AsString);
  qrlTotAbr.Caption := formatarValor(QR_Rel.FieldByName('''ABR''').AsString);
  qrlTotMai.Caption := formatarValor(QR_Rel.FieldByName('''MAI''').AsString);
  qrlTotJun.Caption := formatarValor(QR_Rel.FieldByName('''JUN''').AsString);
  qrlTotJul.Caption := formatarValor(QR_Rel.FieldByName('''JUL''').AsString);
  qrlTotAgo.Caption := formatarValor(QR_Rel.FieldByName('''AGO''').AsString);
  qrlTotSet.Caption := formatarValor(QR_Rel.FieldByName('''SET''').AsString);
  qrlTotOut.Caption := formatarValor(QR_Rel.FieldByName('''OUT''').AsString);
  qrlTotNov.Caption := formatarValor(QR_Rel.FieldByName('''NOV''').AsString);
  qrlTotDez.Caption := formatarValor(QR_Rel.FieldByName('''DEZ''').AsString);
end;

end.
